Skip to content

Prevent duplicate notification when app is foregrounded#1

Open
sraka1 wants to merge 1 commit intorhdeck:masterfrom
zhangjunhou:master
Open

Prevent duplicate notification when app is foregrounded#1
sraka1 wants to merge 1 commit intorhdeck:masterfrom
zhangjunhou:master

Conversation

@sraka1
Copy link
Copy Markdown

@sraka1 sraka1 commented Mar 6, 2019

I think the title and code change pretty much says it all. This MR is already open on the base repo, but there's no activity there.

Btw, great fork and also great job with RNUG 👍Spared me quite some time...

@rhdeck
Copy link
Copy Markdown
Owner

rhdeck commented Mar 6, 2019

Is there a case where one would want the notification to fire when app is in foreground? I need to re-open the code to understand present behavior, but I imagine it would be better to offer a runtime switch to suppress the UI effect of the notification rather than hardcoding that this is off at all times. Thoughts?

@sraka1
Copy link
Copy Markdown
Author

sraka1 commented Mar 6, 2019

Seems okay. You could even go one step further and offer the option to send it as part of the push payload... In any case though, I’d suggest that by default it’s not duplicated (so not added to notification center if in foreground).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants